package org.hgvc.webapp.ets.jsf.beans.report;

import javax.faces.event.ActionEvent;

import org.hgvc.webapp.ets.spring.service.ReportService;
import org.jocsb.base.AbstractBean;
import org.jocsb.base.exception.BaseException;



public class RciSpaceBankDepositBean extends AbstractBean {
	public static final String BEAN_NAME="rciSpaceBankDepositBean";
	
	// service
	private ReportService reportService;
	
	// object
	private ReportSearchBean searchBean = new ReportSearchBean();

	// getters and setters
	public ReportService getReportService() {
		return reportService;
	}

	public void setReportService(ReportService reportService) {
		this.reportService = reportService;
	}
		
	public ReportSearchBean getSearchBean() {
		return searchBean;
	}

	public void setSearchBean(ReportSearchBean searchBean) {
		this.searchBean = searchBean;
	}

	// action
	public void searchActionEvent(ActionEvent event){
		try {
			reportService.createRciSpaceBankDepositReport(searchBean);
		} catch (BaseException e) {
			initErrorBean(e);
			e.printStackTrace();
		}
	}
}
